package com.mybatis.demo.mapper;

import com.github.pagehelper.Page;
import com.mybatis.demo.pojo.dto.getPageDeptDto;
import com.mybatis.demo.pojo.po.BaseWorker;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeptMapper {

    void saveDept(BaseWorker baseWorker);

    List<BaseWorker> listDept();

    void deleteDept(Integer id);

    void updateDept(BaseWorker baseWorker);

    Page<BaseWorker> getPageDept(getPageDeptDto dto);
}
